/**
 * org.assess.oa.system.dao.impl.TbRoleSystemDAOImpl
 */
package org.assess.oa.system.dao.impl;

import java.util.HashMap;
import java.util.Map;

import org.assess.core.dao.BaseDAOImpl;
import org.assess.oa.system.bean.TbRoleSystem;
import org.assess.oa.system.dao.TbRoleSystemDAO;

/**
 * @description 操作角色系统关联信息表的DAO层实现类
 * @author XiaLongxiang
 * @createtime 2012-6-5 上午11:23:46
 */
public class TbRoleSystemDAOImpl extends BaseDAOImpl<TbRoleSystem> implements TbRoleSystemDAO {
    public boolean deleteTbRoleSystemById(String role_system_id) {
        sqlClient.delete("deleteTbRoleSystemById", role_system_id);
        return true;
    }
    
    public boolean deleteTbRoleSystemByRoleId(String role_id) {
        sqlClient.delete("deleteTbRoleSystemByRoleId", role_id);
        return true;
    }
    
    public boolean deleteTbRoleSystemBySystemCode(String system_code) {
        sqlClient.delete("deleteTbRoleSystemBySystemCode", system_code);
        return true;
    }
    
    public boolean deleteTbRoleSystemByRoleAndSystem(String role_id, String system_code) {
        Map<String, String> parameters = new HashMap<String, String>();
        parameters.put("role_id", role_id);
        parameters.put("system_code", system_code);
        sqlClient.delete("deleteTbRoleSystemByRoleAndSystem", parameters);
        return true;
    }
}
